﻿using IHodelBll;
using IHotelDal;
using HotelDal;
using System;
using HotelDal.DishDAL;
using Model;
using System.Collections.Generic;

namespace HodelBll
{
    /// <summary>
    /// 人事管理
    /// </summary>
    public class PersonnelBll : IPersonnelBll
    {
        IpersonnelDal _Ipersonnel;
        public PersonnelBll(IpersonnelDal ipersonnel)
        {
            _Ipersonnel = ipersonnel;
        }
        /// <summary>
        /// 新增员工
        /// </summary>
        /// <param name="S"></param>
        /// <returns></returns>
        public int AddStaff(Staffs S)
        {
            return _Ipersonnel.AddStaff(S);
        }

        /// <summary>
        /// 修改员工信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int AlterStaff(int id)
        {
            return _Ipersonnel.AlterStaff(id);
        }
        /// <summary>
        /// 删除员工
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelStaff(int id)
        {
            return _Ipersonnel.DelStaff(id);
        }

        public List<Departments> DepartmentList()
        {
            return _Ipersonnel.DepartmentList();
        }
        public int AddDpm(Departments s)
        {
            return _Ipersonnel.AddDpm(s);
        }
        public List<Positions> PositionList(int id)
        {
            return _Ipersonnel.PositionList(id);
        }
        public int Addps(Positions s)
        {
            return _Ipersonnel.Addps(s);
        }
        public List<Staffs> Show()
        {
            return _Ipersonnel.Show();
        }
    }
}
